home *** CD-ROM | disk | FTP | other *** search
/ Rat Attack (UK) (Digital Press Kit - Summer '99) / Rat Attack (UK) (Digital Press Kit - Summer '99).bin / RAT01.DIR / 00027_Script_Go to Net Page < prev    next >
Text File  |  1999-04-26  |  2KB  |  57 lines

  1. -- Web       Go to       Page
  2.  
  3. -- when called froma shockwave movie, replaces the shocked page.  When called from authoring
  4. -- or projector, launches a browser and displays the page.
  5. --
  6. -- also functions through lingo by handling message 'initGotoNetPage', 
  7. -- for example if this behavior was assigned to sprite 5, use
  8. -- sendsprite 5, #initGotoNetPage
  9.  
  10.  
  11. property whichEvent, whichURL
  12.  
  13. on initGotoNetPage me
  14.   init me
  15. end
  16.  
  17. on mouseUp me
  18.   if whichEvent = #mouseup    then init me
  19. end
  20.  
  21. on prepareFrame me
  22.   if whichEvent = #prepareframe then init me
  23. end
  24.  
  25. on exitFrame me
  26.   if whichEvent = #exitframe  then init me
  27. end
  28.  
  29. on init me
  30.   gotoNetPage the whichURL of me
  31. end
  32.  
  33. ---
  34.  
  35. on getPropertyDescriptionList  
  36.   set p_list = [ ¼
  37.       #WhichURL: [ #comment:   "Destination URL:", ¼
  38.                     #format:   #string, ¼
  39.                    #default:   "http://www.macromedia.com                  " ],¼
  40.     #WhichEvent: [ #comment:   "Initializing Event:", ¼
  41.                     #format:   #symbol, ¼
  42.                      #range: [ #MouseUp, #PrepareFrame, #ExitFrame, #InitGotoNetPage], ¼
  43.                    #default:   #MouseUp ] ¼
  44.                  ]
  45.   return p_list  
  46. end
  47.  
  48. on getBehaviorDescription
  49.   return ¼
  50. "Loads the designated HTML Page when the specified event occurs.  When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser.  When called from a projector or in authoring mode, it opens a browser to display the requested page." & RETURN & ¼
  51. "PARAMETERS:" & RETURN & ¼
  52. "ò Destination URL - Enter the complete URL of the destination page. Include http://."  & RETURN & ¼
  53. "ò Initializing Event - Specify the event that triggers the behavior."  
  54.   
  55. end
  56.  
  57.